<?php
	include '../../templates/php_session.php'; 

	$prix_consultation_standard = $_POST['prix_consultation_standard'];
	$max_patient_par_page = $_POST['max_patient_par_page'];
	$max_consultation_par_page = $_POST['max_consultation_par_page'];

	$result = mysql_query("UPDATE `configuration` SET " .
				"`max_patient_par_page` = '".$max_patient_par_page."', " .
				"`prix_consultation_standard` = '".$prix_consultation_standard."', " .
				"`max_consultation_par_page` = '".$max_consultation_par_page."' 
				where utilisateur_id = ".$_SESSION['SESS_MEMBER_ID'].";");

	if ($result) {
		header("location: ../../pages/configuration.php?currentTab=default&msg=defaultSaved");
	} else {
		header("location: ../../pages/configuration.php?currentTab=default&msg=defaultNotSaved");
	}
?>